<template>
  <div>
    <Header />
    <router-view></router-view>
    <!-- Footer在个别路由下是不展示的,需要书写一个条件渲染 -->
    <Footer v-show="isShowFooter" />
  </div>
</template>

<script>
import Header from "@comp/Header";
import Footer from "@comp/Footer";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  computed: {
    isShowFooter() {
      return !this.$route.meta.isHidden;
    },
  },
};
</script>

<style></style>
